package at.codebase.db.dao;

import static at.codebase.db.OfyService.ofy;

import java.util.List;

import at.codebase.db.entities.EExternalItemFeedback;

public class EExternalItemFeedbackDao {

	public static List<EExternalItemFeedback> getFeedbackByItem(Long partnerId,
			String itemId) {
		return ofy().load().type(EExternalItemFeedback.class).filter("partnerId", partnerId)
				.filter("itemId", itemId).list();
	}

	public static void addItemFeedback(EExternalItemFeedback itemFeedback) {
		ofy().save().entity(itemFeedback).now();
	}

}
